/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hoja.de.trabajo.pkg5;

/**
 *
 * @author RAUL
 */
public abstract class AbstractCola<E>  implements Cola<E>{

 private int tamano;
    
     public void setTamano(int r){
        tamano = r;
    }
    
    @Override
    public int size(){
        return tamano;
    }
    
    public boolean isEmpty(){
        
        if (tamano==0){
            return true;
        } 
        else{
            return false;
        }
    }
}
 
    

